package gdocsclassify;

import com.google.gdata.client.GoogleService;
import com.google.gdata.client.docs.DocsService;
import com.google.gdata.util.AuthenticationException;

public class GDOCSclassify {
	
	public DocsService service;
	public GoogleService spreadsheetsService;

	public static final String APPLICATION_NAME = "GDocs-Classify";
	
	public static final String DEFAULT_AUTH_PROTOCOL = "https";
	public static final String DEFAULT_AUTH_HOST = "docs.google.com";
	
	public static final String SPREADSHEETS_SERVICE_NAME = "wise";
	public static final String SPREADSHEETS_HOST = "spreadsheets.google.com";

	
	public GDOCSclassify()
	{
	    service = new DocsService(APPLICATION_NAME);
	    spreadsheetsService = new GoogleService(SPREADSHEETS_SERVICE_NAME, APPLICATION_NAME);

	}
	public void login(String username, String password) throws AuthenticationException
	{
	    service.setUserCredentials(username, password);
	    spreadsheetsService.setUserCredentials(username, password);
	}

}
